package com.gyx.lottery.controller.param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class CreateAcivityParam implements Serializable {
    /**
     * 活动名称
     */
    @NotBlank(message = "活动名称不能为空")
    private String activityName;
    /**
     * 活动描述
     */
    @NotBlank(message = "活动描述不能为空")
    private String description;
    /**
     * 活动奖品列表
     */
    @NotEmpty(message = "奖品列表不能为空")
    @Valid
    private List<CreateActivityPrizeParam> activityPrizeList;
    /**
     * 活动参选人员
     */
    @NotEmpty(message = "活动参加人员不能为空")
    @Valid
    private List<CreateActivityUserParam>activityUserList;
}
